package com.spvs.system.api.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.spvs.common.core.annotation.Excel;
import com.spvs.common.core.web.domain.BaseEntity;

import java.util.Date;

/**
 * 消息通知相关对象 equip_notice
 *
 * @author supervision
 * @date 2024-06-15
 */
public class EquipNotice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 状态 0 正常 1否 */
    @Excel(name = "状态 0 正常 1否")
    private Long status;

    /** 类型 0 部门集体消息 1 个人消息 */
    @Excel(name = "类型 0 部门集体消息 1 个人消息")
    private Long type;

    /** 部门ID type为0 时必传   */
    @Excel(name = "部门ID 必传  ")
    private Long deptId;

    /** 用户ID type为1时必传 */
    @Excel(name = "用户ID type为1时必传")
    private Long userId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 扩展字段 */
    @Excel(name = "userName")
    private String infoExtend1;

    /** 扩展字段 */
    @Excel(name = "扩展字段")
    private String readIds;

    private Integer state; // 1已读0未读

    private Integer flag;

    private Integer pageNum;
    private Integer pageSize;

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public Long getId() {
        return id;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Long getStatus() {
        return status;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Long getType() {
        return type;
    }

    public void setType(Long type) {
        this.type = type;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getInfoExtend1() {
        return infoExtend1;
    }

    public void setInfoExtend1(String infoExtend1) {
        this.infoExtend1 = infoExtend1;
    }

    public String getReadIds() {
        return readIds;
    }

    public void setReadIds(String readIds) {
        this.readIds = readIds;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
}
